x86: refine debugging of SMEP/SMAP fix
authorJan Beulich <jbeulich@suse.com>
Tue, 17 May 2016 14:41:35 +0000 (16:41 +0200)
committerJan Beulich <jbeulich@suse.com>
Tue, 17 May 2016 14:41:35 +0000 (16:41 +0200)
commite5e73163ec40b409151f2170d8e406a72b515ff2
treed1259312e0f3328d5a868eb939670b2073fcf742
parent46699c7393bd991234b5642763c5c24b6b39a6c4
x86: refine debugging of SMEP/SMAP fix

Instead of just latching cr4_pv32_mask into %rdx, correct the found
wrong value in %cr4 (to avoid triggering another BUG). The value left
in %rdx should be sufficient for deducing cr4_pv32_mask from the
register dump.

Also there is one more place for XEN_CR4_PV32_BITS to be used.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
Release-acked-by: Wei Liu <wei.liu2@citrix.com>
xen/arch/x86/x86_64/compat/entry.S